home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / ups / apcd-0.5 / apcd-0 / Makefile < prev    next >
Makefile  |  1995-11-07  |  1KB  |  43 lines

  1. # ------------------ USER CONFIGURABLE SETTINGS ---------------------------
  2. # The directories where files will be installed, you may want to change these.
  3. BINDIR=/usr/sbin
  4. MANDIR=/usr/man
  5. ETCDIR=/etc
  6.  
  7. # Compiler flags.
  8. CC = gcc
  9. CFLAGS = -O -Wall -fomit-frame-pointer -pipe 
  10.  
  11. # If you are using gcc 2.5.8 this will get you QMAGIC executables
  12. # later versions of gcc do this by default.
  13. #LDFLAGS = -Xlinker -qmagic
  14. LDFLAGS = 
  15. # ------------------ END OF USER CONFIGURATIONS ---------------------------
  16.  
  17. OBJFILES=apcd.o parse.o upsnet.o
  18. SOURCEFILES=apcd.c parse.c upsnet.c
  19. HFILES=apcd.h version.h 
  20. DOCFILES=README
  21. DISTFILES=Makefile $(SOURCEFILES) $(HFILES) $(DOCFILES)
  22.  
  23. apcd: $(OBJFILES)
  24.     $(CC) $(CFLAGS) $(LDFLAGS) $(OBJFILES) -o apcd
  25.  
  26. install: apcd
  27.     install -o root -g bin apcd ${BINDIR}/apcd
  28.     install -o root -g bin doc/apcd.man ${MANDIR}/man8/apcd.8
  29.     install -o root -g bin apcd.conf ${ETCDIR}/apcd.conf
  30.     chmod 4744 ${BINDIR}/apcd
  31. clean:
  32.     rm -f *.o apcd
  33.  
  34. dep:
  35.     $(CPP) -M *.c > .depend
  36.  
  37. #
  38. # include a dependency file if one exists
  39. #
  40. ifeq (.depend,$(wildcard .depend))
  41. include .depend
  42. endif
  43.